package com.zelix;

import java.io.*;
import java.util.ArrayList;
import java.util.Vector;

public abstract class yi extends xi
{

    private static String z[];

    public yi(int j)
    {
        super(j);
    }

    private void a(String s, String s1, String s2, nh nh1)
    {
        if(s.equals(s1) || !oc.h && s.equalsIgnoreCase(s1))
            nh1.a(z[7] + s + z[33] + s2 + z[32] + a() + z[8] + d());
    }

    protected Reader a(File file)
        throws IOException
    {
        BufferedReader bufferedreader;
label0:
        {
            int j = si.g;
            String s = re.a(file);
            if(s != null)
            {
                bufferedreader = new BufferedReader(new InputStreamReader(new FileInputStream(file), s));
                if(j == 0)
                    break label0;
            }
            bufferedreader = new BufferedReader(new InputStreamReader(new FileInputStream(file)));
        }
        StringBuffer stringbuffer = new StringBuffer();
        String s1;
        while((s1 = bufferedreader.readLine()) != null) 
        {
            stringbuffer.append(s1);
            stringbuffer.append(zo.e);
        }
        bufferedreader.close();
        return new StringReader(stringbuffer.toString());
    }

    boolean a(xh xh1, nh nh1)
    {
        String s = xh1.a();
        if(super.f.b(z[15]) && s.equals(z[18]))
        {
            nh1.e(z[13] + a() + z[8] + d() + z[14] + z[15] + z[12]);
            return false;
        }
        if(super.f.b(z[18]) && s.equals(z[15]))
        {
            nh1.e(z[17] + a() + z[8] + d() + z[14] + z[18] + z[16]);
            return false;
        } else
        {
            return true;
        }
    }

    protected void a(nh nh1, int j, int k)
    {
        PrintWriter printwriter;
        cs cs1;
        gv gv1;
        String s;
        sp sp1;
        Vector vector;
        Vector vector1;
        StringBuffer stringbuffer;
        int i1;
label0:
        {
            i1 = si.g;
            it it1 = nh1.c();
            if(!it1.k())
            {
                nh1.a(z[25] + a() + z[8] + d() + z[24]);
                if(i1 == 0)
                    break label0;
            }
            if(it1.u())
                nh1.a(z[25] + a() + z[8] + d() + z[19]);
        }
label1:
        {
            printwriter = nh1.n();
            cs1 = new cs(printwriter, vh.e().length(), nh1.y());
            gv1 = gv.b();
            wu wu1 = nh1.d();
            s = (String)wu1.a();
            String s1 = vh.e() + " " + i() + z[31];
            printwriter.println(s1);
            System.out.println(s1);
            sp1 = new sp();
            a(sp1, nh1);
            b(sp1, nh1);
            m(sp1, nh1);
            d(sp1, nh1);
            vector = nh1.i();
            vector1 = nh1.w();
            c(sp1, nh1);
            if(!nh1.z())
                break MISSING_BLOCK_LABEL_623;
            stringbuffer = new StringBuffer();
            if(sp1.e)
            {
                stringbuffer.append(z[21]);
                if(i1 == 0)
                    break label1;
            }
            stringbuffer.append(z[27]);
        }
        if(sp1.g != null && sp1.g.length != 0) goto _L2; else goto _L1
_L1:
        stringbuffer.append(z[28]);
        if(i1 == 0) goto _L3; else goto _L2
_L2:
        int l = 0;
        if(i1 == 0) goto _L5; else goto _L4
_L4:
        if(l > 0)
            stringbuffer.append(z[23]);
        stringbuffer.append("\"" + sp1.g[l].a() + "\"");
        l++;
_L5:
        if(l < sp1.g.length) goto _L4; else goto _L3
_L3:
        printwriter.println(stringbuffer.toString());
        printwriter.println(z[30] + sp1.f + "\"");
        printwriter.println(z[26] + sp1.w);
        String s2 = null;
        switch(sp1.b)
        {
        case 0: // '\0'
            s2 = z[11];
            break;

        case 1: // '\001'
            s2 = z[22];
            break;

        case 2: // '\002'
            s2 = z[29];
            break;
        }
        printwriter.println(z[20] + s2);
        a(vector, vector1, sp1, nh1, s, gv1, ((bs) (cs1)));
        if(sp1.h != null)
        {
            sp1.h.close();
            sp1.h = null;
        }
        return;
    }

    protected abstract void a(Vector vector, Vector vector1, sp sp1, nh nh1, String s, gv gv1, bs bs);

    protected abstract String i();

    protected void a(sp sp1, nh nh1)
    {
        Vector vector;
        ArrayList arraylist;
        int j;
        int k;
        k = si.g;
        sp1.g = null;
        vector = null;
        if(super.f.b(z[15]))
            vector = super.f.d(z[15]);
        else
        if(super.f.b(z[18]))
        {
            vector = super.f.d(z[18]);
            sp1.e = true;
        }
        arraylist = new ArrayList();
        if(vector == null)
            break MISSING_BLOCK_LABEL_375;
        j = 0;
        if(k == 0) goto _L2; else goto _L1
_L1:
        String s;
        File file;
label0:
        {
            s = (String)vector.get(j);
            if(s == null || s.length() <= 0)
                continue; /* Loop/switch isn't completed */
            String s1 = oc.c(s);
            if(oc.a(s1))
            {
                file = new File(nh1.f(), s1);
                if(k == 0)
                    break label0;
            }
            file = new File(s1);
        }
        String s2 = file.getAbsolutePath();
        String s3 = nh1.m();
        a(s2, s3, z[2], nh1);
        String s4 = nh1.u();
        a(s2, s4, z[9], nh1);
        hy hy1 = new hy(s);
        try
        {
            hy1.a(a(file));
            arraylist.add(hy1);
        }
        catch(IOException ioexception)
        {
            nh1.a(z[7] + s2 + z[0] + a() + z[8] + d() + z[5] + ioexception + z[34]);
        }
        j++;
_L2:
        if(j < vector.size()) goto _L1; else goto _L3
_L3:
        if(arraylist.size() > 0)
            sp1.g = (hy[])arraylist.toArray(new hy[arraylist.size()]);
    }

    protected void b(sp sp1, nh nh1)
    {
        int k;
label0:
        {
            k = si.g;
            Vector vector = super.f.d(z[4]);
            if(vector == null)
                vector = super.f.d(z[6]);
            sp1.h = null;
            if(vector != null && vector.size() > 0)
            {
                sp1.f = ((String)vector.get(0)).trim();
                if(k == 0)
                    break label0;
            }
            sp1.f = z[3];
        }
label1:
        {
            if(sp1.f.length() > 0)
            {
                String s = oc.c(sp1.f);
                File file = null;
                try
                {
                    if(oc.a(s))
                        file = new File(nh1.f(), s);
                    else
                        file = new File(s);
                    int j = s.lastIndexOf(zo.a);
                    if(j > 0)
                    {
                        String s1 = s.substring(0, j);
                        kc.a(s1);
                    }
                    String s2 = file.getAbsolutePath();
                    String s3 = nh1.m();
                    a(s2, s3, z[2], nh1);
                    String s4 = nh1.u();
                    a(s2, s4, z[9], nh1);
                    String s5 = qe.a();
                    if(s5 != null)
                    {
                        sp1.h = new PrintWriter(new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), s5), 2048));
                        sp1.v = s5;
                        if(k == 0)
                            break label1;
                    }
                    OutputStreamWriter outputstreamwriter = new OutputStreamWriter(new FileOutputStream(file));
                    sp1.h = new PrintWriter(new BufferedWriter(outputstreamwriter, 2048));
                    sp1.v = null;
                    break label1;
                }
                catch(IOException ioexception)
                {
                    nh1.a(z[7] + file.getAbsolutePath() + z[0] + a() + z[8] + d() + z[5] + ioexception + z[1]);
                }
                if(k == 0)
                    break label1;
            }
            sp1.f = null;
        }
    }

    protected abstract void c(sp sp1, nh nh1);

    protected void m(sp sp1, nh nh1)
    {
        sp1.w = false;
        Vector vector = super.f.d(z[10]);
        if(vector != null && vector.size() > 0)
        {
            String s = (String)vector.get(0);
            if(s != null && s.equals(z[11]))
                sp1.w = true;
        }
    }

    protected void d(sp sp1, nh nh1)
    {
label0:
        {
            sp1.b = 1;
            Vector vector = super.f.d(z[35]);
            if(vector == null || vector.size() <= 0)
                break label0;
            String s = (String)vector.get(0);
            if(s == null)
                break label0;
            if(s.equals(z[11]))
            {
                sp1.b = 0;
                if(si.g == 0)
                    break label0;
            }
            if(s.equals(z[29]))
                sp1.b = 2;
        }
    }

    private static String z(char[] chs) {
        byte key = 0;
        for (int i = 0; i < chs.length; i++) {
            switch (i % 5) {
                case 0:
                    key =0x13;
                    break;
                case 1:
                    key =9;
                    break;
                case 2:
                    key = 117;
                    break;
                case 3:
                    key =63;
                    break;
                case 4:
                    key =73;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static
    {
        String as[];
        as = new String[36];
        as[0] = "1)\026P<\177mUQ&g)\027Zi|y\020Q,w)\034Qi1";
        as[1] = "33U\027{:";
        as[2] = "IB8\037%|n";
        as[3] = "Pa\024Q.vE\032Xggq\001";
        as[4] = "pa\024Q.vE\032X\017ze\020p<g";
        as[5] = "33U";
        as[6] = "pa\024Q.vE\032X\017ze\020";
        as[7] = "Pa\024Q.v)\031P.3o\034S,3+";
        as[8] = "1)\006K(gl\030Z'g)\024Ki\177`\033Zi";
        as[9] = "g{\034Ri\177f\022";
        as[10] = "rn\022M,`z\034I,^l\001W&w[\020Q(~`\033X";
        as[11] = "g{\000Z";
        as[12] = "1)\002V%\177)\027Zifz\020[g3!F\026";
        as[13] = "1j\035^'tl9P.U`\031Z\000}+U^'w)WS&|z\020|!rg\022Z\005|n3V%v@\033\035iry\005Z(a)\034Qi1";
        as[14] = "=)!W,j)\024M,3d\000K<re\031Fivq\026S<``\003Zg3+";
        as[15] = "pa\024Q.vE\032X\017ze\020v'";
        as[16] = "1)\002V%\177)\027Zifz\020[g3!A\026";
        as[17] = "1e\032P:vJ\035^'tl9P.U`\031Z\000}+U^'w)W\\!rg\022Z\005|n3V%v@\033\035iry\005Z(a)\034Qi1";
        as[18] = "\177f\032L,Pa\024Q.vE\032X\017ze\020v'";
        as[19] = "3~\034K!3g\032\037*\177h\006L,`)\032O,}l\021";
        as[20] = "\032b\020Z9Zg\033Z;Pe\024L:Zg\023Pt";
        as[21] = "\032e\032P:vJ\035^'tl9P.U`\031Z\000}4";
        as[22] = "uh\031L,";
        as[23] = "?)";
        as[24] = "3k\020Y&alUP9vg\034Q.3j\031^:`l\006";
        as[25] = "R}\001Z$c}UK&3|\006Zi1";
        as[26] = "\032h\022X;vz\006V?vD\020K!|m'Z'rd\034Q..";
        as[27] = "\032j\035^'tl9P.U`\031Z\000}4";
        as[28] = "1+";
        as[29] = "zo;^$vG\032K\006qo\000L*r}\020[";
        as[30] = "\032j\035^'tl9P.U`\031Z\006f}H\035";
        as[31] = "3j\031^:`l\006\021g=";
        as[32] = "3o\034S,3g\024R,3`\033\037k";
        as[33] = "1)\026S(`a\020Lid`\001Wi";
        as[34] = "33U\027x:";
        as[35] = "xl\020O\000}g\020M\n\177h\006L\000}o\032";
        for(int i = 0;i<as.length;i++)
            as[i] = z(as[i].toCharArray());
        z = as;

    }
}
